import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import 'element-ui/lib/theme-chalk/index.css';
import {
  Button,
  Table,
  TableColumn,
  Form,
  FormItem,
  Input,
  Select,
  Option,
  Col,
  Switch,
  DatePicker,
  TimePicker,
  Checkbox,
  CheckboxGroup,
  Radio,
  RadioGroup,
  Upload,
  Row,
} from "element-ui"; //按需引入

Vue.component(Button.name, Button);
Vue.use(Row);

Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Select);
Vue.use(Option);
Vue.use(Col);
Vue.use(Switch);
Vue.use(DatePicker);
Vue.use(CheckboxGroup);
Vue.use(Checkbox);
Vue.use(TimePicker);
Vue.use(Radio);
Vue.use(RadioGroup);

Vue.use(Upload);

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
